package kr.hkit.powerjava.algorithm;

public class StackTest {
	public static void main(String[] args) {
		int size = 3;
		Structure stack = new Stack(size);
		stack.push("a"); 
		stack.prn();
		stack.push("b");
		stack.prn();
		stack.push("c");
		stack.prn();

		for (int i = 0; i < 3; i++) {
			System.out.println("pop " + stack.pop());
			stack.prn(); // 마지막에is Empty 출력
		}

		/*for (int i = 97; i < size+97; i++) { //아스키코드로 a가 97임. a~c
			stack.push(String.format("%c", i)); // 마지막에는isFull
			stack.prn(); 
		}*/
		
	}
}
